package gui;

import java.util.logging.Logger;

import main.MainApp;

import com.jme3.app.Application;

import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

public class IGGui implements ScreenController {
	/** nifty instance. */
	private Nifty nifty;
	private static final Logger logger = Logger.getLogger(Application.class
			.getName());
	
	/**
	 * Bind this ScreenController to a screen.
	 * @param newNifty nifty
	 * @param newScreen screen
	 */
	public final void bind(final Nifty newNifty, final Screen newScreen) {
		this.nifty = newNifty;
	}
	
	public void closeIGMenu() {
		logger.warning("no");
		MainApp.closeIGMenu();
	}
	
	/**
	 * on start screen interactive.
	 */
	public final void onStartScreen() {
	}
	
	/**
	 * on end screen.
	 */
	public final void onEndScreen() {
	}
	
	/**
	 * quit method called from the helloworld.xml.
	 */
	public final void quit() {
		nifty.setAlternateKeyForNextLoadXml("fade");
		nifty.fromXml("all/intro.xml", "menu");
	}
}